<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{{'cfg_admin_sysname'|getCfgVar}}</title>

<link href="{{$smarty.const.__SHARE__}}plug/dwz/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="{{$smarty.const.__SHARE__}}plug/dwz/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="{{$smarty.const.__SHARE__}}plug/dwz/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="{{$smarty.const.__SHARE__}}plug/dwz/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if IE]>
<link href="{{$smarty.const.__SHARE__}}plug/dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
<![endif]-->

<script src="{{$smarty.const.__SHARE__}}js/speedup.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}js/jquery.cookie.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}js/jquery.validate.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/xheditor/xheditor-1.1.14-zh-cn.min.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/uploadify/scripts/swfobject.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.core.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.util.date.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.validate.method.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.drag.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.tree.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.accordion.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.ui.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.theme.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.navTab.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.tab.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.resize.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.dialog.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.stable.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.ajax.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.pagination.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.database.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.datepicker.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.effects.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.panel.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.history.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.combox.js" type="text/javascript"></script>
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.print.js" type="text/javascript"></script>
<!--
<script src="{{$smarty.const.__SHARE__}}plug/dwz/bin/dwz.min.js" type="text/javascript"></script>
-->
<script src="{{$smarty.const.__SHARE__}}plug/dwz/js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript">
$(function(){
	DWZ.init("{{$smarty.const.__SHARE__}}plug/dwz/dwz.frag.xml", {
		loginUrl:"{{$smarty.const.__ROOT__?c=public&a=loginDialog|url}}", loginTitle:"登录",	// 弹出登录对话框
//		loginUrl:"{{$smarty.const.__ROOT__?c=public&a=login|url}}",	// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"{{$smarty.const.__SHARE__}}plug/dwz/themes"}); // themeBase 相对于index页面的主题base路径
		}
	});
});

</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav2">
				<!-- <a class="logo" href="">标志</a>  -->
				<div style='margin-top:10px; font-size: 20pt; font-family:"arial,sans-serif";'>{{'cfg_admin_sysname'|getCfgVar}}</div>
				<ul class="nav">
					<li><a href="{{'cfg_indexurl'|getCfgVar}}" target="_blank">{{'cfg_indexname'|getCfgVar}}</a></li>
					<li><a href="{{$smarty.const.__ROOT__?c=system&a=about|url}}" target="dialog">版本信息</a></li>
					<li><a href="{{$smarty.const.__ROOT__?c=manager&a=setPwd|url}}" target="dialog">修改密码</a></li>
                    <li><a href="javascript:;" onclick="logout()">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="default"><div class="selected">蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<!--<li theme="red"><div>红色</div></li>-->
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
					<li theme="azure"><div>天蓝</div></li>
				</ul>
			</div>

			<!-- navMenu -->
			
		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">
				{{$modules}}
				</div>
				
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo">
							<!--<p><span></span></p>-->
							<p>{{'cfg_admin_sysdesc'|getCfgVar}}</p>
						</div>
						<div class="pageFormContent" layoutH="58">
							<table class="list">
								<tr calss="row">
								<td colspan="3" style="background: #B4EEB4;"><b>{{$welcome}}</b></td>
								</tr>
								<tr class="row" ><th colspan="3" class="space">系统信息</th></tr>
								{{section name=loop loop=$info}}
								<tr class="row"><td width="15%">{{$info[loop][0]}}</td><td>{{$info[loop][1]}}</td></tr>
								{{/section}}
							</table>	
						</div>
						
						<div style="width:260px;position: absolute;top:60px;right:0" layoutH="80">
							<!-- <iframe width="100%" height="430" class="share_self"  frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=430&fansRow=2&ptype=1&speed=0&skin=9&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1888707615&verifier=1c853142&dpc=1"></iframe> -->
							<div id="weather_box"></div>
							<div id="select_box" style="display: none;">
							<br/><br/>
							<select id="w_province" onchange="setCity(this.value);" class="combox"></select>
							<select id="w_city" class="combox">
							<option value="">选择市</option>
							</select>
							<div class="buttonActive"><div class="buttonContent"><button type="button" onclick="var id=$('#w_city').val();if(id==''){alertMsg.error('请选择市!');}else{getWeather(id)}">查询</button></div></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>

<div id="footer"><a href="{{'cfg_indexurl'|getCfgVar}}" target="_blank">{{'cfg_powerby'|getCfgVar}}</a></div>

<script type="text/javascript" src="{{$smarty.const.__APP_RESOURCE__}}js/city.js"></script>
<script type="text/javascript">

	function logout(){
		alertMsg.confirm("您确定要退出系统吗？", {
			okCall: function(){
				window.location = "{{$smarty.const.__ROOT__?c=public&a=logout|url}}";
				return false;
			}
		});
	}


	function getAreaID(){
		$.getScript('http://61.4.185.48:81/g/', function(){
			if(typeof(id) == "undefined"){return;}
	   		getWeather(id);
	   		$("#select_box").css("display", "block");
		});
	}

	function getWeather(id){
		$.ajax({
       		type: 'POST',
       		data: {city_id: id},
       		url: "{{$smarty.const.__URL__}}",
       		cache: false,
       		success: function(text){
   				$("#weather_box").html(text);
           	},
       		error: DWZ.ajaxError
     	 });
	}
	
	{{if 'cfg_open_weather'|getCfgVar eq 1}}
	setProvince();
	setTimeout(getAreaID, 1000);
	{{/if}}
</script>
</body>
</html>